@extends('default.layouts.english.companyPublic')

@section('title', '企业账户中心')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/company/list.css')}}">
@endsection

@section('rightcon')
    <div class="right">
        <div class="jright">
            <div class="content">
                <div class="jobtitle">
                    <div class="tithead">
                        <ul>
                            <li><a href="{{url('company/english/resume_message')}}">{{trans('english.applications')}}</a></li>
                            <li><a href="{{url('company/english/resume_favorite')}}">{{trans('english.Enterprise')}}</a></li>
                            <li><a href="{{url('company/english/resume_buy')}}">{{trans('english.purchased')}}</a></li>
                            <li><a href="{{url('company/english/browse_resume')}}">{{trans('english.Browse')}}</a></li>
                            <li class="active"><a href="{{url('company/english/browse_company')}}">{{trans('english.visited')}}</a></li>
                        </ul>
                    </div>
                </div>
                {{--\搜索内容--}}
                <div class="jobsearch">
                    <form name="Formso" action="{{url('company/english/browse_company')}}" method="get">
                        {!! csrf_field() !!}
                        <span><input name="keyWord" class="keyWord" value="" id="keyWord" placeholder="{{trans('english.jobEnter')}}" type="text"/></span>
                        <span><input name="submit" class="searpos" value="" id="" type="submit"/></span>
                    </form>
                </div>
                {{--显示列表--}}
                <div class="pinfo">
                    <form name="thisForm" action="{{url('company/english/browse_company')}}" method="post">
                        {!! csrf_field() !!}
                        <div class="listmenu">
                            <ul class="one">
                                <li class="p1"></li>
                                <li class="p100">{{trans('english.name')}}</li>
                                <li class="p200">{{trans('english.position')}}</li>
                                <li class="p200">{{trans('english.Essential')}}</li>
                                <li class="p2">{{trans('english.jobInTension')}}</li>
                                <li class="p5">{{trans('english.Storage')}}</li>
                            </ul>
                            <div class="information"><span>Received altogether<em> {{$relist->total()}} </em>Resume！</span></div>
                            {{--循环--}}
                            @if($relist->count() > 0 )
                                @foreach($relist as $v)
                                    <ul id="list{{$v->id}}">
                                        <li class="p1">
                                            <input name="selected_id[]" class="checkboxs" value="{{$v->id}}" type="checkbox"/>
                                        </li>
                                        <li class="p100"><a class="linkbright" target="_blank" href="{{url('resume_'.idEncryption($v->resume_id).'.html')}}">{{str_limit($v->name,9)}}</a></li>
                                        <li class="p200">{{str_limit($v->cnsex.' | '.$v->birthday.'Year | '.$v->education.' | '.$v->homeaddress,26)}}</li>
                                        <li class="p200">{{str_limit($v->intentionjobs,16)}}</li>
                                        <li class="p2">{{str_limit($v->jobarea,30)}}</li>
                                        <li class="p5">{{timeTranx($v->updated_at)}}</li>
                                    </ul>
                                @endforeach
                            @else
                                <div class="nullcon">{{trans('english.Records')}}</div>
                            @endif
                            <ul class="one last">
                                <li class="p1" style="width:80px;">
                                    <input name="selectall" id="selectall" class="checkboxs" value="234" type="checkbox" onclick="CheckAll(this)"/>
                                    <label for="selectall">Check</label>
                                </li>
                                <li class="p800">
                                </li>
                            </ul>
                        </div>
                    </form>
                </div>
                {{--分页--}}
                <div class="page_list">
                    {!! $relist->links() !!}
                </div>
            </div>
        </div>
    </div>

@endsection
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/company/list.js')}}"></script>
    <script type="text/javascript">
        $("#leftnav_resume").addClass("active");
    </script>
@endsection